package chapter3.No3_1_等待和通知机制.i等待wait的条件发生变化;

/**
 * Created by Administrator on 2016/11/18.
 */
public class ThreadAdd extends Thread {
    private Add p;

    public ThreadAdd(Add add) {
        this.p = add;
    }

    @Override
    public void run() {
        p.add();
    }
}
